<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>图书管理系统</title>
</head>
<body>
<%
    if (request.getSession().getAttribute("username") != null) { // 登录成功
        out.print("欢迎光临：" + request.getSession().getAttribute("username") + "<br>");
%>
<h1>
    操作面板
</h1>
<a href="<c:url value="/book/search.jsp"/>">图书查询</a><br>
<a href="<c:url value="/record/list.jsp"/>">借阅记录</a><br>
<a href="<c:url value="/member/password.jsp"/>">修改密码</a><br>
<a href="<c:url value="/User?method=logout"/>">退出登录</a><br>
<%
} else {
%>
<h1>
    Welcome
</h1>
<a href="<c:url value="/member/login.jsp"/>">登录</a><br>
<a href="<c:url value="/member/register.jsp"/>">注册</a><br>
<%
    }
%>
</body>
</html>